const Joi = require('joi')

// role_auth模块验证规则 
// 新增
const roleAuthAddSchema = Joi.object({
    role_id: Joi.number(),
    auth_id: Joi.number()
})

// 查询
const roleAuthListSchema = Joi.object({
    id: Joi.number(),
    role_id: Joi.number(),
    auth_id: Joi.number()
})

// 删除  
const roleAuthDeleteSchema = Joi.object({
    ids: Joi.array() 
})

exports.roleAuthAdd = roleAuthAddSchema 
exports.roleAuthDelete = roleAuthDeleteSchema 
exports.roleAuthList = roleAuthListSchema 
